const userRouter = require('./user');
const chatRouter = require('./chat'); // 引入chat路由

function setRoutes(app) {
    // user 路由
    app.use(userRouter.routes()).use(userRouter.allowedMethods());
    // chat 路由
    app.use(chatRouter.routes()).use(chatRouter.allowedMethods());
}

module.exports = setRoutes;